3.71 \(\int \frac{\cos ^3(a+b x^n)}{x} \, dx\)

Optimal. Leaf size=67 \[ \frac{3 \cos (a) \text{CosIntegral}\left (b x^n\right )}{4 n}+\frac{\cos (3 a) \text{CosIntegral}\left (3 b x^n\right )}{4 n}-\frac{3 \sin (a) \text{Si}\left (b x^n\right )}{4 n}-\frac{\sin (3 a) \text{Si}\left (3 b x^n\right )}{4 n} \]

[Out]

(3*Cos[a]*CosIntegral[b*x^n])/(4*n) + (Cos[3*a]*CosIntegral[3*b*x^n])/(4*n) - (3*Sin[a]*SinIntegral[b*x^n])/(4
*n) - (Sin[3*a]*SinIntegral[3*b*x^n])/(4*n)

________________________________________________________________________________________

Rubi [A]  time = 0.0860536, antiderivative size = 67, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 4, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {3426, 3378, 3376, 3375} \[ \frac{3 \cos (a) \text{CosIntegral}\left (b x^n\right )}{4 n}+\frac{\cos (3 a) \text{CosIntegral}\left (3 b x^n\right )}{4 n}-\frac{3 \sin (a) \text{Si}\left (b x^n\right )}{4 n}-\frac{\sin (3 a) \text{Si}\left (3 b x^n\right )}{4 n} \]

Antiderivative was successfully verified.

[In]

Int[Cos[a + b*x^n]^3/x,x]

[Out]

(3*Cos[a]*CosIntegral[b*x^n])/(4*n) + (Cos[3*a]*CosIntegral[3*b*x^n])/(4*n) - (3*Sin[a]*SinIntegral[b*x^n])/(4
*n) - (Sin[3*a]*SinIntegral[3*b*x^n])/(4*n)

Rule 3426

Int[((a_.) + Cos[(c_.) + (d_.)*(x_)^(n_)]*(b_.))^(p_)*((e_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandTrigReduce[(e
*x)^m, (a + b*Cos[c + d*x^n])^p, x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && IGtQ[p, 0]

Rule 3378

Int[Cos[(c_) + (d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Dist[Cos[c], Int[Cos[d*x^n]/x, x], x] - Dist[Sin[c], Int[Si
n[d*x^n]/x, x], x] /; FreeQ[{c, d, n}, x]

Rule 3376

Int[Cos[(d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Simp[CosIntegral[d*x^n]/n, x] /; FreeQ[{d, n}, x]

Rule 3375

Int[Sin[(d_.)*(x_)^(n_)]/(x_), x_Symbol] :> Simp[SinIntegral[d*x^n]/n, x] /; FreeQ[{d, n}, x]

Rubi steps

\begin{align*} \int \frac{\cos ^3\left (a+b x^n\right )}{x} \, dx &=\int \left (\frac{3 \cos \left (a+b x^n\right )}{4 x}+\frac{\cos \left (3 a+3 b x^n\right )}{4 x}\right ) \, dx\\ &=\frac{1}{4} \int \frac{\cos \left (3 a+3 b x^n\right )}{x} \, dx+\frac{3}{4} \int \frac{\cos \left (a+b x^n\right )}{x} \, dx\\ &=\frac{1}{4} (3 \cos (a)) \int \frac{\cos \left (b x^n\right )}{x} \, dx+\frac{1}{4} \cos (3 a) \int \frac{\cos \left (3 b x^n\right )}{x} \, dx-\frac{1}{4} (3 \sin (a)) \int \frac{\sin \left (b x^n\right )}{x} \, dx-\frac{1}{4} \sin (3 a) \int \frac{\sin \left (3 b x^n\right )}{x} \, dx\\ &=\frac{3 \cos (a) \text{Ci}\left (b x^n\right )}{4 n}+\frac{\cos (3 a) \text{Ci}\left (3 b x^n\right )}{4 n}-\frac{3 \sin (a) \text{Si}\left (b x^n\right )}{4 n}-\frac{\sin (3 a) \text{Si}\left (3 b x^n\right )}{4 n}\\ \end{align*}

Mathematica [A]  time = 0.121043, size = 53, normalized size = 0.79 \[ \frac{3 \cos (a) \text{CosIntegral}\left (b x^n\right )+\cos (3 a) \text{CosIntegral}\left (3 b x^n\right )-3 \sin (a) \text{Si}\left (b x^n\right )-\sin (3 a) \text{Si}\left (3 b x^n\right )}{4 n} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[a + b*x^n]^3/x,x]

[Out]

(3*Cos[a]*CosIntegral[b*x^n] + Cos[3*a]*CosIntegral[3*b*x^n] - 3*Sin[a]*SinIntegral[b*x^n] - Sin[3*a]*SinInteg
ral[3*b*x^n])/(4*n)

________________________________________________________________________________________

Maple [A]  time = 0.036, size = 52, normalized size = 0.8 \begin{align*}{\frac{1}{n} \left ( -{\frac{{\it Si} \left ( 3\,b{x}^{n} \right ) \sin \left ( 3\,a \right ) }{4}}+{\frac{{\it Ci} \left ( 3\,b{x}^{n} \right ) \cos \left ( 3\,a \right ) }{4}}-{\frac{3\,{\it Si} \left ( b{x}^{n} \right ) \sin \left ( a \right ) }{4}}+{\frac{3\,{\it Ci} \left ( b{x}^{n} \right ) \cos \left ( a \right ) }{4}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(a+b*x^n)^3/x,x)

[Out]

1/n*(-1/4*Si(3*b*x^n)*sin(3*a)+1/4*Ci(3*b*x^n)*cos(3*a)-3/4*Si(b*x^n)*sin(a)+3/4*Ci(b*x^n)*cos(a))

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: IndexError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*x^n)^3/x,x, algorithm="maxima")

[Out]

Exception raised: IndexError

________________________________________________________________________________________

Fricas [A]  time = 2.00628, size = 274, normalized size = 4.09 \begin{align*} \frac{\cos \left (3 \, a\right ) \operatorname{Ci}\left (3 \, b x^{n}\right ) + 3 \, \cos \left (a\right ) \operatorname{Ci}\left (b x^{n}\right ) + 3 \, \cos \left (a\right ) \operatorname{Ci}\left (-b x^{n}\right ) + \cos \left (3 \, a\right ) \operatorname{Ci}\left (-3 \, b x^{n}\right ) - 2 \, \sin \left (3 \, a\right ) \operatorname{Si}\left (3 \, b x^{n}\right ) - 6 \, \sin \left (a\right ) \operatorname{Si}\left (b x^{n}\right )}{8 \, n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*x^n)^3/x,x, algorithm="fricas")

[Out]

1/8*(cos(3*a)*cos_integral(3*b*x^n) + 3*cos(a)*cos_integral(b*x^n) + 3*cos(a)*cos_integral(-b*x^n) + cos(3*a)*
cos_integral(-3*b*x^n) - 2*sin(3*a)*sin_integral(3*b*x^n) - 6*sin(a)*sin_integral(b*x^n))/n

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos ^{3}{\left (a + b x^{n} \right )}}{x}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*x**n)**3/x,x)

[Out]

Integral(cos(a + b*x**n)**3/x, x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (b x^{n} + a\right )^{3}}{x}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*x^n)^3/x,x, algorithm="giac")

[Out]

integrate(cos(b*x^n + a)^3/x, x)